import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';
var JmtgTcl8ComponentViewmodel = /** @class */ (function (_super) {
    tslib_1.__extends(JmtgTcl8ComponentViewmodel, _super);
    function JmtgTcl8ComponentViewmodel() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.bindingPath = '/';
        _this.dom = {
            "jmtg-tcl8-dataGrid": {
                "type": "DataGrid",
                "resourceId": "jmtg-tcl8-dataGrid",
                "visible": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": true
                },
                "id": "jmtg-tcl8-dataGrid",
                "readonly": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": false
                },
                "fields": [
                    {
                        "type": "GridField",
                        "resourceId": "merchantCode_3ca385f8_rzi8",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "merchantCode_3ca385f8_rzi8",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "merchantCode",
                            "fullPath": "MerchantCode",
                            "isExpression": false,
                            "value": "merchantCode"
                        },
                        "dataField": "merchantCode",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "参与商户编号",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "merchantCode_3ca385f8_zf02",
                            "defaultI18nValue": "参与商户编号",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "merchantCode_3ca385f8_zf02",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "merchantCode",
                                "fullPath": "MerchantCode",
                                "isExpression": false,
                                "value": "merchantCode"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "merchantName_718e88bb_e3c8",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "merchantName_718e88bb_e3c8",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "merchantName",
                            "fullPath": "MerchantName",
                            "isExpression": false,
                            "value": "merchantName"
                        },
                        "dataField": "merchantName",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "参与商户名称",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "merchantName_718e88bb_jkl4",
                            "defaultI18nValue": "参与商户名称",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "merchantName_718e88bb_jkl4",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "merchantName",
                                "fullPath": "MerchantName",
                                "isExpression": false,
                                "value": "merchantName"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "adminstrator_f3478ce9_56hl",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "adminstrator_f3478ce9_56hl",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "adminstrator",
                            "fullPath": "Adminstrator",
                            "isExpression": false,
                            "value": "adminstrator"
                        },
                        "dataField": "adminstrator",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "商户管理员",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "adminstrator_f3478ce9_eh7u",
                            "defaultI18nValue": "商户管理员",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "adminstrator_f3478ce9_eh7u",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "adminstrator",
                                "fullPath": "Adminstrator",
                                "isExpression": false,
                                "value": "adminstrator"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    }
                ],
                "multiSelect": false,
                "showLineNumber": false,
                "lineNumberTitle": "#",
                "groupTotalText": "Total",
                "filterable": false,
                "groupable": false,
                "rowClass": ""
            }
        };
        return _this;
    }
    JmtgTcl8ComponentViewmodel.prototype.jmtgtcl8componentviewmodelFilter1 = function (commandParam) { return; };
    tslib_1.__decorate([
        NgCommand({
            name: 'jmtgtcl8componentviewmodelFilter1',
            params: {
                commandName: 'undefined',
                frameId: 'undefined'
            },
            paramDescriptions: {
                commandName: { type: 'string' },
                frameId: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], JmtgTcl8ComponentViewmodel.prototype, "jmtgtcl8componentviewmodelFilter1", null);
    JmtgTcl8ComponentViewmodel = tslib_1.__decorate([
        Injectable()
    ], JmtgTcl8ComponentViewmodel);
    return JmtgTcl8ComponentViewmodel;
}(ViewModel));
export { JmtgTcl8ComponentViewmodel };
